package com.znsd.entitys;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * 
 * @ClassName: Leave
 * @Description: TODO(请假表实体类)
 * @author Liuyl
 * @date 2019年8月29日
 *
 */
@JsonIgnoreProperties("handler")
public class Leave implements Serializable {

	/**
	 * @Fields serialVersionUID : TODO(序列化id)
	 */
	private static final long serialVersionUID = 1L;

	private Integer l_id;// 主键
	private Users student_id;// 申请人
	private Integer l_type;// 类型
	private Integer l_state;// 状态
	private String l_cause;// 请假原因
	private Users teacher_id;// 处理人
	private Date dispose_time;// 处理的时间
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date begin_time;// 从什么请假
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date end_time;// 到什么时候
	private Date apply_time;// 申请日期
	private String l_phone;// 紧急联系人电话

	public Integer getL_state() {
		return l_state;
	}

	public void setL_state(Integer l_state) {
		this.l_state = l_state;
	}

	public Integer getL_id() {
		return l_id;
	}

	public void setL_id(Integer l_id) {
		this.l_id = l_id;
	}

	public Users getStudent_id() {
		return student_id;
	}

	public void setStudent_id(Users student_id) {
		this.student_id = student_id;
	}

	public Integer getL_type() {
		return l_type;
	}

	public void setL_type(Integer l_type) {
		this.l_type = l_type;
	}

	public String getL_cause() {
		return l_cause;
	}

	public void setL_cause(String l_cause) {
		this.l_cause = l_cause;
	}

	public Users getTeacher_id() {
		return teacher_id;
	}

	public void setTeacher_id(Users teacher_id) {
		this.teacher_id = teacher_id;
	}

	public Date getDispose_time() {
		return dispose_time;
	}

	public void setDispose_time(Date dispose_time) {
		this.dispose_time = dispose_time;
	}

	public Date getBegin_time() {
		return begin_time;
	}

	public void setBegin_time(Date begin_time) {
		this.begin_time = begin_time;
	}

	public Date getEnd_time() {
		return end_time;
	}

	public void setEnd_time(Date end_time) {
		this.end_time = end_time;
	}

	public Date getApply_time() {
		return apply_time;
	}

	public void setApply_time(Date apply_time) {
		this.apply_time = apply_time;
	}

	public String getL_phone() {
		return l_phone;
	}

	public void setL_phone(String l_phone) {
		this.l_phone = l_phone;
	}

	@Override
	public String toString() {
		return "Leave [l_id=" + l_id + ", student_id=" + student_id + ", l_type=" + l_type + ", l_state=" + l_state
				+ ", l_cause=" + l_cause + ", teacher_id=" + teacher_id + ", dispose_time=" + dispose_time
				+ ", begin_time=" + begin_time + ", end_time=" + end_time + ", apply_time=" + apply_time + ", l_phone="
				+ l_phone + "]";
	}

}
